﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Bird.OAWeb.Domain.Table
{
    /// <summary>
    /// 角色表
    /// </summary>
    [Table("Roles")]
    public class Role
    {
        /// <summary>
        /// 角色主键
        /// </summary>
        [Key]
        public int RoleId { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        [StringLength(50)]
        public string RoleName { get; set; }
        /// <summary>
        /// 角色说明
        /// </summary>
        [StringLength(25)]
        public string  RoleDescription{ get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedTime { get; set; }=DateTime.Now;
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdatedTime { get; set; }= DateTime.Now;
    }
}
